package cn.enilu.flash.dao.transport;

import cn.enilu.flash.bean.entity.transport.MapPoint;
import cn.enilu.flash.dao.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MapPointRepository extends BaseRepository<MapPoint,Long> {


    @Query(value = "select * from t_map_point p where p.road_id=:roadId",nativeQuery = true)
    List<MapPoint> findList(@Param("roadId") Long roadId);

}
